/*
 * @Author: 华芊芊 huaqianqian@yeah.net
 * @Date: 2023-09-22 10:08:44
 * @LastEditors: 华芊芊 huaqianqian@yeah.net
 * @LastEditTime: 2023-11-09 11:00:59
 * @FilePath: \zmglpt-ui-screen\src\api\market.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
import qs from 'qs'

let paramsTemp = {
  // ...JSON.parse(localStorage.getItem('PICKTIME')),
}
// 全景总览大屏首页中间部分需要用到的数据
export const getMapNum = (params = {}) =>
  request({
    url: '/cigar_market_assess_stat_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 高德地图数据获取
// https://geo.datav.aliyun.com/areas_v3/bound/340000_full.json

// 行政许可
export const getLicTotalNum = (params = {}) =>
  request({
    url: '/home_lic_schema/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

// 全景案件管理
export const getCaseTotalNum = (params = {}) =>
  request({
    url: '/home_case_schema/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 全景电子烟管理
export const getECigarTotalNum = (params = {}) =>
  request({
    url: '/home_ele_case_schema/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

export const updateDtQuestion = (params = {}) =>
    request({
        url: 'http://10.48.0.55:8081/api/dt/question/update',
        method: 'post',
        data: { ...paramsTemp, ...params },
        custom: { catch: true },
        headers: { 'content-type': 'application/json' },
    })